#ifndef _WDS_UI_GAMEOVER_H_
#define _WDS_UI_GAMEOVER_H_

#include "wds_ui_popupanimator.h"
#include "wds_score.h"

class WDSUIHelper;

class WDSUIGameOver : public WDSUIPopupAnimator
{
public:

	
	const static int STAR_COUNT = 3;
	
	WDSUIGameOver();
	~WDSUIGameOver();
    virtual void					OnAnimatedUIFinish();	

	virtual void					Show();
	virtual	void					Tick(float dt);  
	void							Render();
	virtual bool					KeyPressed(input::Keyboard::KEY* pKey);		

protected:


    void DELEGATE_CALL				OnButtonPlay(ui::UIWidget::WIDGET_EVENT Event, ui::UIWidget* pWidget);
	void							OnPressPlay();

	
	ui::UIWidget*					m_pUILevelText;
	ui::UIWidget*					m_pUIPostFB;		
	ui::UIWidget*					m_pButtonNext;
	ui::UIWidget*					m_pButtonRetry;
	ui::UIWidget*					m_pUIYouFailed;
	ui::UIWidget*					m_pUIStarsFrame;
	ui::UIWidget*					m_pUIReason;
	ui::UIWidget*					m_pUIButtonGlow;
	ui::UIWidget*					m_pUIStars[STAR_COUNT];

	int								m_Score;	
	WDSScore						m_ObjScore;
	
	int								m_PreviousLevelStatus;
	float							m_Delay;	
	float							m_AlphaGlow;
	int								m_GlowAddVal;
	math::Vec2						m_StarPos[3];
	
	std::vector<WDSUIHelper*>		m_pButtons;

private:
	

};


#endif //WDSUIGameOver